﻿@model Springwater.Business.ViewModels.BorvizModel

@{
    ViewBag.Title = "Index";
}

<h2 style="text-decoration: underline">Nev: @Model.ElsodlegesNev</h2>

@if (this.User.IsInRole(Springwater.Business.Enums.UserEnum.Admin))
{
    <span>@Html.ActionLink("Modosit", "Edit", new { id = Model.Id })</span>
}

<div class="BorvizDetail">
    <table style="width: 100%;">
        <tr>
            <td>
                <label class="Text">Kod:</label></td>
            <td>
                <label class="Value">@Model.Kod</label></td>
            <td>
                <label class="Text">Tajegyseg:</label></td>
            <td>
                <label class="Value">@Model.Tajegyseg</label></td>
            <td>
                <label class="Text">Eredet:</label></td>
            <td>
                <label class="Value">@Model.Eredet</label></td>
        </tr>
        <tr>
            <td colspan="6">@Html.Partial("Slider", Model.FenykepList)</td>
        </tr>
        <tr>
            <td>
                <label class="Text">Leiras:</label></td>
            <td colspan="5">
                <div class="leiras">@Html.Raw(Model.Leiras)</div></td>
        </tr>
        <tr>
            <td>
                <label class="Text">Egyeb Elnevezes:</label>
            </td>
            <td>
                <ul>
                    @foreach (var nev in Model.NevList)
                    {
                        <li>
                            <label class="Value">@nev</label></li>    
                    }
                </ul>
            </td>
            <td>
                <label class="Text">Vizgyujto:</label>
            </td>
            <td>
                <ul>
                    @foreach (var vizgyujto in Model.VizgyujtoList)
                    {
                        <li>
                            <label class="Value">@vizgyujto</label></li>    
                    }
                </ul>
            </td>
            <td>
                
            </td>
            <td>
 
            </td>
        </tr>
        <tr>
            <td>
                <label class="Text">GPS Nord:</label></td>
            <td>
                <label class="Value">@Model.GpsNord</label></td>
            @if(Model.GpsList != null) {
            <td colspan="4" rowspan="3">@Html.Partial("Map", Model.GpsList)</td>
            }
        </tr>
        <tr>
            <td>
                <label class="Text">GPS Est:</label></td>
            <td colspan="5">
                <label class="Value">@Model.GpsEst</label></td>
        </tr>
        <tr>
            <td>
                <label class="Text">Magassag:</label></td>
            <td colspan="5">
                <label class="Value">@Model.Magassag</label></td>
        </tr>
        <tr>
            <td colspan="6">
                <table>
                    <tr>
                        <td><label class="Text">Allapot:</label></td>
                        <td><label class="Value">@Model.Allapot</label></td>
                    </tr>
                    <tr>
                        <td><label class="Text">Forma:</label></td>
                        <td><label class="Value">@Model.Forma</label></td>
                    </tr>
                    <tr>
                        <td><label class="Text">Kiepitettseg:</label></td>
                        <td><label class="Value">@Model.Kiepitettseg</label></td>
                    </tr>
                    <tr>
                        <td><label class="Text">Környezeti veszélyeztetettség:</label></td>
                        <td><label class="Value">@Model.KornyezetiVeszely</label></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <table class="Meresek">
                    <thead>
                        <tr>
                            <th>Dátum</th>
                            <th style="width:20px;">Gázfeltörés</th>
                            <th>Hőmérséklet (C)</th>
                            <th>Vízhozam (l/s)</th>
                            <th>Kond. (µS/cm)</th>
                            <th>TDS (mg/l)</th>
                            <th>pH</th>
                            <th>Sótartalom (ppt)</th>
                            <th>CO2 (mg/l)</th>
                            <th>HCO3 (mg/l)</th>
                            <th>Ca (mg/l)</th>
                            <th>Mg (mg/l)</th>
                            <th>NH4 (mg/l)</th>
                            <th>NO3 (ppm)</th>
                            <th>Fe össz (mg/l)</th>
                            <th>Cl (mg/l)</th>
                            <th>PO4 (mg/l)</th>
                            <th>Szerző</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach(var meres in Model.MeresList)
                        {
                        <tr>
                            <td>@meres.Dátum</td>
                            <td>@meres.Gázfeltörés</td>
                            <td>@DisplayHelper.Display(this.User, meres.Hőmérséklet)</td>
                            <td>@meres.Vízhozam</td>
                            <td>@meres.Kond</td>
                            <td>@meres.TDS</td>
                            <td>@meres.pH</td>
                            <td>@meres.Sótartalom</td>
                            <td>@meres.CO2</td>
                            <td>@meres.HCO3</td>
                            <td>@meres.Ca</td>
                            <td>@meres.Mg</td>
                            <td>@meres.NH4</td>
                            <td>@meres.NO3</td>
                            <td>@meres.Fe</td>
                            <td>@meres.Cl</td>
                            <td>@meres.PO4</td>
                            <td>@meres.Szerző</td>
                        </tr>
                        }
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
</div>

@section scripts{
    <script type="text/javascript">
    </script>
}


